/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.signallight.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.signallight.entity.TSignalLight;
import com.thinkgem.jeesite.modules.signallight.dao.TSignalLightDao;

/**
 * 信号灯与停车区关联Service
 * @author Leon
 * @version 2019-04-12
 */
@Service
@Transactional(readOnly = true)
public class TSignalLightService extends CrudService<TSignalLightDao, TSignalLight> {
	
	@Autowired
	private TSignalLightDao tSignalLightDao;
	public TSignalLight get(String id) {
		return super.get(id);
	}
	
	public List<TSignalLight> findList(TSignalLight tSignalLight) {
		return super.findList(tSignalLight);
	}
	
	public Page<TSignalLight> findPage(Page<TSignalLight> page, TSignalLight tSignalLight) {
		return super.findPage(page, tSignalLight);
	}
	
	@Transactional(readOnly = false)
	public void save(TSignalLight tSignalLight) {
		super.save(tSignalLight);
	}
	
	@Transactional(readOnly = false)
	public void delete(TSignalLight tSignalLight) {
		super.delete(tSignalLight);
	}

	public List<TSignalLight> fingAllSignLight() {
		return tSignalLightDao.fingAllSignLight();
	}
	
}